package View;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLayeredPane;
import javax.swing.JLabel;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JTextField;

public class JDialogPrincipal extends JDialog {

	private final JPanel contentPanel = new JPanel();
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			JDialogPrincipal dialog = new JDialogPrincipal();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public JDialogPrincipal() {
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBounds(26, 43, 369, 163);
		contentPanel.add(panel);
		panel.setLayout(null);
		
		JLabel lblUsuario = new JLabel("Usuario");
		lblUsuario.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblUsuario.setBounds(49, 41, 68, 14);
		panel.add(lblUsuario);
		
		JLabel lblClavee = new JLabel("Clave");
		lblClavee.setFont(new Font("Tahoma", Font.BOLD, 14));
		lblClavee.setBounds(49, 77, 46, 14);
		panel.add(lblClavee);
		
		textField = new JTextField();
		textField.setBounds(137, 40, 141, 20);
		panel.add(textField);
		textField.setColumns(10);
		
		textField_1 = new JTextField();
		textField_1.setBounds(136, 76, 142, 20);
		panel.add(textField_1);
		textField_1.setColumns(10);
		{
			JButton okButton = new JButton("OK");
			okButton.setBounds(49, 129, 68, 23);
			panel.add(okButton);
			okButton.setActionCommand("OK");
			getRootPane().setDefaultButton(okButton);
		}
		{
			JButton cancelButton = new JButton("Cancel");
			cancelButton.setBounds(133, 129, 65, 23);
			panel.add(cancelButton);
			cancelButton.setActionCommand("Cancel");
		}
		
		JLabel lblTheFactorySystem = new JLabel("The Factory System - Sistema de Ingreso ");
		lblTheFactorySystem.setFont(new Font("Tahoma", Font.BOLD, 16));
		lblTheFactorySystem.setBackground(Color.GRAY);
		lblTheFactorySystem.setBounds(45, 11, 350, 22);
		contentPanel.add(lblTheFactorySystem);
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane, BorderLayout.SOUTH);
		}
	}
}
